/**
 * 项目名：化工企业安全生产信息化管理平台
 * 日期：    2020-03-01 22:19:07
 * Copyright (c) 2015- -版权所有
 */

package com.joysuch.wwyt.edu.service;

import com.joysuch.wwyt.core.bean.CourseBean;
import com.joysuch.wwyt.core.bean.SimpleListBean;
import com.joysuch.wwyt.core.bean.SimpleSelectListBean;
import com.joysuch.wwyt.core.common.ajax.ResultBean;
import com.joysuch.wwyt.core.exception.BusinessRestrictionsException;
import com.joysuch.wwyt.edu.bean.EduCourseCoursewareListBean.SearchEduCourseCourseware;
import com.joysuch.wwyt.edu.bean.*;
import com.joysuch.wwyt.edu.bean.EduCourseListBean.SearchEduCourse;
import com.joysuch.wwyt.edu.entity.EduCourse;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

public interface EduCourseService {

    public EduCourse add(EduCourseEditBean entity);

    void update(EduCourseEditBean entity);

    Page<EduCourseListBean> findByPage(Pageable page, SearchEduCourse condition);

    void delete(Long id) throws BusinessRestrictionsException;

    EduCourseDetailBean getById(Long id);

    EduCourse findById(Long id);

    public Page<EduCoursewareListBean> findCoursewareByPage(Pageable page, SearchEduCourseCourseware condition);

    public void batchAddCourseware(Long courseId, List<Long> coursewareIds);

    public void deleteCourseware(Long courseId, Long coursewareId);

    public Page<EduCoursewareDetailBean> queryCoursewareList(Long courseId, Long coursewareTypeId, Pageable pageable);

    public List<SimpleSelectListBean> queryCoursewareTypeListOfCourse(Long courseId);

    ResultBean eduCourse();

    List<SimpleListBean> findCoursewareByList(Long courseId);

    List<CourseBean> findAll(String name);

    Page<EduCourseVo> coursePage(Pageable page, SearchEduCourse condition);

    void courseExport(SearchEduCourse condition, HttpServletRequest request, HttpServletResponse response);
}
